﻿@model object[]
@{
    var containerName = Model[0];
    var containerURL = Model[1];
    var containerURLNoExt = Convert.ToString(containerURL).Replace(".swf", "");
    var containerWidth = Model[2];
    var containerHeight = Model[3];
}

<script type="text/javascript">
    AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0', 'width', '@containerWidth', 'height', '@containerHeight', 'src', '@containerURLNoExt', 'quality', 'high', 'pluginspage', 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash', 'wmode', 'transparent', 'movie', '@containerURLNoExt') //end AC code
</script>

<noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="@containerWidth" height="@containerHeight">
        <param name="movie" value="@containerURL" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <embed src="@containerURL" width="@containerWidth" height="@containerHeight" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
            type="application/x-shockwave-flash" wmode="transparent"></embed>
    </object>
</noscript>